<template>

  <div class="common-layout">
    <el-container class="lay-container">
      <!-- <el-aside width="200px" class="el-aside">Aside</el-aside> 将侧边栏改成我们自定义的组件，通过common-aside引入我们自己写的组件-->
      <common-aside></common-aside>
      <el-container>
        <el-header class="el-header">
          <!-- Header 将Header里的内容也替换成我们自己写的组件common-header-->
          <common-header></common-header>
        </el-header>
        <el-main class="right-main">
          <router-view></router-view>
        </el-main>
        <el-footer class="el-footer">Footer</el-footer>
      </el-container>
    </el-container>
  </div>

</template>

<script setup>
import CommonAside from '@/components/CommonAside.vue'
import CommonHeader from '@/components/CommonHeader.vue'
</script>
<style scoped lang="less">
.common-layout, .lay-container {
  height: 100%;
}
.el-header {
  background-color: #333;
}

.el-footer {
  background-color: white;

}


</style>

